<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>个人中心</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no" />
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>首页</title>
    <link rel="stylesheet" href="../../css/base.css">
    <link rel="stylesheet" href="../../css/index.css">
    <script src="../../js/jquery-2.2.3.min.js"></script>
    <script src="../../js/common.js"></script>
    <script src="../../js/rem.js"></script>
    <style>
        .header {
            z-index: 1000;
        }

        .h-logo {
            background: none;
        }

        .h-logo img {
            width: 100%;
            height: 100%;
            float: left;
        }

        .m-c-box {
            float: left;
            width: 49%;
            margin-top: .15rem;
        }

        .line {
            position: absolute;
            left: 33%;
            top: 3.6rem;
        }

        .line2 {
            position: absolute;
            left: 66%;
            top: 3.6rem;
        }

        .h-xuliehao {
            width: 75%;
            background: none;
            font-size: 0.14rem;
            margin-left: .8rem;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .h-vips {
            background: none;
            font-size: 0.14rem;
        }

        .daililan {
            display: none;
        }

        .arrows {
            width: 100%;
            height: 0.3rem;
            text-align: center;
        }

        .arrows img {
            display: block;
            width: 0.3rem;
            height: 0.2rem;
            padding: 0.1px;
            margin: 0 auto;
            margin-top: 0.1rem;
        }
        .h-daili-sp {
            font-size: .14rem;
            color: #ccc;
        }
    </style>
</head>

<body style="background: #F8F8F8">
<div class="header">
    <p class="h-title">个人中心</p>
    <div class="h-logo"></div>
    <div class="h-name">
        <span class="h-name-sp"></span>
        <span class="h-daili-sp">普通会员</span>
    </div>
    <div class="h-vips"></div>
    <div class="h-xuliehao"></div>
</div>
<div style="height: .44rem;"></div>

<div class="cont" style="height: auto; overflow: hidden; z-index:1004;">
    <div class="c-left">零售订单</div>
    <div class="c-right" onclick="location.href='myorder.html'">查看更多 <img src="../../img/icon-right.png" class="icon-right"
                                                                          alt=""> </div>
    <div class="cont-item">
        <div class="c-i ling-pay" onclick="location.href='myorder.html?ling=1'">
            <img src="../../img/item1.png" alt="">
            <p>待付款</p>
            <!--<div class="c-status">-->

            <!--</div>-->
        </div>
        <div class="c-i ling-shou" onclick="location.href='myorder.html?ling=2'">
            <img src="../../img/item2.png" alt="">
            <p>已付款</p>
            <!--<div class="c-status">-->

            <!--</div>-->
        </div>
        <div class="c-i ling-fa" onclick="location.href='myorder.html?ling=3'">
            <img src="../../img/item3.png" alt="">
            <p>待收货</p>
            <!--<div class="c-status">-->

            <!--</div>-->
        </div>
    </div>
    <!--<div class="yiwu-container" style="display:none;">-->
        <!--<div class="c-left">积分订单</div>-->
        <!--<div class="c-right" onclick="location.href='yiwu.html'">查看更多 <img src="../../img/icon-right.png"-->
                                                                           <!--class="icon-right" alt=""> </div>-->
        <!--<div class="cont-item">-->
            <!--<div class="c-i yi-pay" onclick="location.href='yiwu.html?ling=1'">-->
                <!--<img src="../../img/item1.png" alt="">-->
                <!--<p>已付款</p>-->
                <!--&lt;!&ndash;<div class="c-status">&ndash;&gt;-->

                <!--&lt;!&ndash;</div>&ndash;&gt;-->
            <!--</div>-->
            <!--<div class="c-i yi-shou" onclick="location.href='yiwu.html?ling=2'">-->
                <!--<img src="../../img/item2.png" alt="">-->
                <!--<p>待收货</p>-->
                <!--&lt;!&ndash;<div class="c-status">&ndash;&gt;-->

                <!--&lt;!&ndash;</div>&ndash;&gt;-->
            <!--</div>-->
            <!--<div class="c-i yi-fa" onclick="location.href='yiwu.html?ling=3'">-->
                <!--<img src="../../img/item3.png" alt="">-->
                <!--<p>已完成</p>-->
                <!--&lt;!&ndash;<div class="c-status">&ndash;&gt;-->

                <!--&lt;!&ndash;</div>&ndash;&gt;-->
            <!--</div>-->
        <!--</div>-->
    <!--</div>-->
    <!--<div class="arrows">-->
        <!--<img src="../../img/top-jian.png" class="top-jian" style="display:none;" alt="">-->
        <!--<img src="../../img/bottom-jian.png" class="bottom-jian" alt="">-->
    <!--</div>-->
</div>

<div class="myAssets" style="margin-top:0.4rem;">
    <div class="myAssets-title">我的资产</div>
    <div class="myAssets-cont" style="overflow: hidden;">
        <div class="m-c-box" onclick="window.location.href='../jiangliqianbao.html'">
            <p class="m-c-b-p m-c-b-p-jiang">0.00</p>
            <p class="m-c-b-p2">奖励钱包(元)</p>
        </div>
        <!--<div class="m-c-box" style="float: right;" onclick="window.location.href='../CashWallet.html'">-->
            <!--<p class="m-c-b-p m-c-b-p-xian">126930.00</p>-->
            <!--<p class="m-c-b-p2">现金钱包(元)</p>-->
        <!--</div>-->
    </div>
</div>
<!--<div class="container" onclick="location.href='../youhuiquan.html'" style="margin-top: 0;border-bottom: 1px solid #E3E3E3;margin-top: 0;">-->
    <!--<div class="c-left">-->
        <!--<img src="../../img/personal-item9.png" class="kucunImg" alt="">-->
        <!--<span>购物券</span>-->
    <!--</div>-->
    <!--<div class="c-right">-->
        <!--<img src="../../img/icon-right.png" class="icon-right" alt="">-->
    <!--</div>-->
<!--</div>-->
<!--<div class="container chinzZ" style="border-bottom: 1px solid #E3E3E3;">
    <div class="c-left">
        <img src="../../img/personal-item12.png" class="kucunImg" alt="">
        <span>充值</span>
    </div>
    <div class="c-right">
        <img src="../../img/icon-right.png" class="icon-right" alt="">
    </div>
</div>-->
<div class="container fenxiang" onclick="location.href='../my_invitation.html'" style="border-bottom: 1px solid #E3E3E3;">
    <div class="c-left">
        <img src="../../img/personal-item6.png" class="kucunImg" alt="">
        <span>我的分享</span>
    </div>
    <div class="c-right">
        <img src="../../img/icon-right.png" class="icon-right" alt="">
    </div>
</div>
<!-- <div class="container" style="border-bottom: 1px solid #E3E3E3;margin-top: 0" onclick="location.href='../mysteam.html'">
    <div class="c-left">
        <img src="../../img/personal-item7.png" class="kucunImg" alt="">
        <span>我的团队</span>
    </div>
    <div class="c-right">
        <img src="../../img/icon-right.png" class="icon-right" alt="">
    </div>
</div> -->
<div class="container" onclick="location.href='../bankCard.html'" style="border-bottom: 1px solid #E3E3E3;">
    <div class="c-left">
        <img src="../../img/personal-item8.png" class="kucunImg" alt="">
        <span>银行卡管理</span>
    </div>
    <div class="c-right">
        <img src="../../img/icon-right.png" class="icon-right" alt="">
    </div>
</div>
<div class="container" onclick="location.href='../set.html'" style="margin-top: 0;">
    <div class="c-left">
        <img src="../../img/personal-item10.png" class="kucunImg" alt="">
        <span>设置</span>
    </div>
    <div class="c-right">
        <img src="../../img/icon-right.png" class="icon-right" alt="">
    </div>
</div>
<div style="height: 3rem"></div>
<div class="foot" style="border: 0;">
    <div class="foot-item" onclick="location.href='../index/index.html'">
        <div class="f-i-i foot1"></div>
        <p class="">首页</p>
    </div>
    <!--onclick="location.href='../../aliancemerchant/index.html'"-->
    <!--<div class="foot-item ">-->
        <!--<div class="f-i-i foot2"></div>-->
        <!--<p>积分商城</p>-->
    <!--</div>-->
    <div class="foot-item" onclick="location.href='../shopcar/indexShop.html'">
        <div class="f-i-i foot3"></div>
        <p>购物车</p>
    </div>
    <div class="foot-item">
        <div class="f-i-i isactive foot44"></div>
        <p class="isactive">我的</p>
    </div>
</div>
</body>
<script>
    $('.fenxiang').show()
    $('.chinzZ').click(function () {
        location.href = '../chongZhi.html'
    });
    if (localStorage.getItem('userId') == null) {
        window.location.href = '../detail/login.html'
    }
    $.ajax({
        url: SURL + '/api/xlsUser/myCenterData?userId=' + localStorage.getItem('userId'),
        dataType: 'json',
        type: 'post',
        success: function (res) {
            $('.fenxiang').show()
            localStorage.setItem('jianglizonge', res.data.account.awardPrice);
	    localStorage.setItem('dengluphone', res.data.users.mobile);
            var level = res.data.users.circleLevel;
            var levelName = '';
            if (level == 0) {
                levelName = '初级用户'
            }else if (level == 1){
                levelName = '县级用户'
            } else if (level == 2) {
                levelName = '市级用户'
            } else if (level == 3) {
                levelName = '省级用户'
            } else if (level == 4) {
                levelName = '合伙人'
            } else if (level == 5) {
                levelName = '普通用户'
            }
            $('.h-name-sp').text(res.data.users.mobile);
            $('.h-daili-sp').text(levelName);
            $('.m-c-b-p-jiang').text(res.data.account.awardPrice)
            res.users.headImg == null ? $('.h-logo').append(`<img src="../../img/g_tx.png">`) : $('.h-logo')
                .append(`<img src="${res.users.headImg}" alt="">`);
        }
    })
</script>

</html>
